﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Jim.K3Cloud;

/// <summary>
/// 菜单、工具条类型。其中BarSubCategory是设计器使用的分类，包括：ToolBar，MainMenu，PopupMenu，StatusBar项
/// ToolBar表示工具条，MainMenu表示菜单，PopupMenu表示Pop菜单，StatusBar表示状态条，其他都是这些项的子项
/// </summary>
public enum K3CloudEnumBarItemStyle
{
    /// <summary>默认值，支持xml持久化处理，默认为0时的强制转换(使用时没有初始化）</summary>
    Non= 0,
    /// <summary>按钮菜单项</summary>
    BarButtonItem = 1,
    /// <summary>子菜单菜单项</summary>
    BarSubItem = 2,
    /// <summary>复选菜单项</summary>
    BarCheckIte= BarSubItem | BarButtonItem, // 0x00000003
    /// <summary>下拉框菜单项</summary>
    BarComboxItem = 4,
    /// <summary>下拉按钮菜单项</summary>
    BarDropDownButtonItem= BarComboxItem | BarButtonItem, // 0x00000005
    /// <summary>子下拉按钮菜单项</summary>
    BarSubDropDownButtonItem = BarComboxItem | BarSubItem, // 0x00000006
    /// <summary>文本菜单项</summary>
    BarTextFieldIte= BarSubDropDownButtonItem| BarButtonItem, // 0x00000007
    /// <summary>主菜单</summary>
    MainMen= 8,
    /// <summary>多文档子菜单</summary>
    MDIChildSubMen= MainMen| BarButtonItem, // 0x00000009
    /// <summary>弹出式菜单</summary>
    PopupMen= MDIChildSubMen| BarSubItem, // 0x0000000B
    /// <summary>状态条</summary>
    StatusBa= MainMen| BarComboxItem, // 0x0000000C
    /// <summary>分割菜单项</summary>
    Seperato= StatusBa| BarButtonItem, // 0x0000000D
    /// <summary>工具栏</summary>
    ToolBa= StatusBa| BarSubItem, // 0x0000000E
    /// <summary>菜单分类</summary>
    BarSubCategor= ToolBa| BarButtonItem, // 0x0000000F
    BarSplitButton = 16, // 0x00000010
}